#!/us/bin/env  node

const koa=require('koa');
const app=new koa(),
      log=console.log,
      logger=require('./middleware/logger.js');


console.log('hello wangyibo');


app.use(logger);






app.use((ctx,next)=>{//m.hello


  ctx.body='hello koa';

})


app.listen(8080);
